﻿<%@ Page Language="C#" MasterPageFile="~/Provider/CarInsurance/Liberty_CarInsurance.master"
    AutoEventWireup="true" CodeFile="ProviderCarPremiumClaimLoading.aspx.cs" Inherits="Provider_CarInsurance_ProviderCarPremiumClaimLoading" %>

<%@ Register Src="~/controls/usrDate.ascx" TagName="usrDate" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
 <script src="~/controls/CE_Date.js" type="text/javascript"></script>
    <div class="provider_inner">
        <h1>
            Add/Edit Claim Loading on Premium
            <asp:Label ID="lblProviderCarId" runat="server" Visible="false" Text="0"></asp:Label></h1>
        <fieldset>
            <dl>
                <dt>
                    <label>
                        No. of Claim</label></dt>
                <dd>
                    <asp:DropDownList ID="ddlNoOfClaim" runat="server">
                        <asp:ListItem Value="-1">Select</asp:ListItem>
                        <asp:ListItem Value="1">1</asp:ListItem>
                        <asp:ListItem Value="2">>2</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvNoOfClaimn" runat="server" ControlToValidate="ddlNoOfClaim"
                        ErrorMessage="Select no of claim." InitialValue="-1" ValidationGroup="LoadingPremium"></asp:RequiredFieldValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Claim Amount</label></dt>
                <dd>
                    <asp:DropDownList ID="ddlClaimAmt" runat="server">
                        <asp:ListItem Value="-1">Select</asp:ListItem>
                        <asp:ListItem Value="$1 to $2000">$1 to $2000</asp:ListItem>
                        <asp:ListItem Value="$2001 to $5000">$2001 to $5000</asp:ListItem>
                        <asp:ListItem Value="$5001 to $10k">$5001 to $10k</asp:ListItem>
                        <asp:ListItem Value="> $10001">> $10001</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvClaimAmt" runat="server" ControlToValidate="ddlClaimAmt"
                        ErrorMessage="Select claim amount." InitialValue="-1" ValidationGroup="LoadingPremium"></asp:RequiredFieldValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        NCD (range in %)</label></dt>
                <dd>
                    <asp:DropDownList ID="ddlNCD" runat="server">
                        <asp:ListItem Value="-1">Select</asp:ListItem>
                        <asp:ListItem Value="0% to 20%">0% to 20%</asp:ListItem>
                        <asp:ListItem Value="0% to 50%">0% to 50%</asp:ListItem>
                        <asp:ListItem Value="30% to 50%">30% to 50%</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvNCD" runat="server" ControlToValidate="ddlNCD"
                        ErrorMessage="Select ncd value." InitialValue="-1" ValidationGroup="LoadingPremium"></asp:RequiredFieldValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                       Current Adopted Loading</label></dt>
                <dd>
                    <asp:TextBox ID="txtAdoptedLoading" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtAdoptedLoading"
                        ErrorMessage="Enter adopted loading value." ValidationGroup="LoadingPremium"></asp:RequiredFieldValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Schedule Adopted Loading Update</label></dt>
                <dd>
                   <asp:RadioButtonList runat="server" ID="rdoEffectivity"  RepeatDirection="Horizontal" AutoPostBack="true" OnSelectedIndexChanged="EffectiveWhen">
                   <asp:ListItem Value="Yes">Yes</asp:ListItem>
                   <asp:ListItem Value="No">No</asp:ListItem>                   
                   </asp:RadioButtonList>
                  
                </dd>
            </dl>
              <div id="divNewRate" runat="server" visible="false">
             <dl>
                <dt>
                    <label>
                        Effectivity Date</label></dt>
                <dd>
                   <uc1:usrDate ID="usrEffectivityDate" ValidationGroup="LoadingPremium" runat="server" IsNotLessThanToday="true" />
                  
                </dd>
            </dl>
            
             <dl>
                <dt>
                    <label>
                        New Rate</label></dt>
                <dd>
                    <asp:TextBox ID="txtNewRate" runat="server" MaxLength="5"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvNewRate" runat="server" ControlToValidate="txtNewRate"
                        ErrorMessage="Enter new loading." Display="Dynamic" ValidationGroup="LoadingPremium"></asp:RequiredFieldValidator>
                    
                </dd>
            </dl>
            </div>
            <dl>
                <dt>
                    <label>
                        Status</label></dt>
                <dd>
                    <asp:CheckBox ID="chkStatus" runat="server" />
                </dd>
            </dl>
             <dl>
                <dt>
                    <label>
                        Auth Code</label></dt>
                <dd>
                    <asp:TextBox ID="txtAuthCode" runat="server" TextMode="Password" MaxLength="12" Width="150px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvAuthCode" runat="server" ControlToValidate="txtAuthCode"
                        ErrorMessage="Enter auth code." ValidationGroup="carcapacity"></asp:RequiredFieldValidator>
                </dd>
            </dl>
        </fieldset>
        <fieldset class="action">
            <asp:ImageButton OnClientClick="javascript:return confirm('Are you sure to go back?');"
                ID="ibtBack" runat="server" CssClass="left_btn" ImageUrl="~/Provider/images/buttons/back1.gif"
                OnClick="ibtBack_Click" />
            <asp:ImageButton ID="ibtSubmit" CssClass="float_btn" runat="server" ImageUrl="~/Provider/images/buttons/submit1.gif"
                OnClick="btnSubmit_Click" ValidationGroup="LoadingPremium" />
            
        </fieldset>
        <asp:Label ID="lblMessage" runat="server" CssClass="successmsg"></asp:Label>
    </div>
</asp:Content>
